package com.k8s.messages.impl;

import com.k8s.feign.PlatformServiceClient;
import com.k8s.messages.MessageService;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

@Service
@ConditionalOnProperty(value = "k8s.mode", havingValue = "email")
public class EmailMessageServiceImpl implements MessageService {
    private final static Logger LOGGER = LoggerFactory.getLogger(EmailMessageServiceImpl.class);

    @Resource
    private PlatformServiceClient messageService;
    /**
     * 发送邮件
     *
     * @param platformId
     * @param mobilePhone
     * @param message
     * @param supplierId
     */
    @Override
    public void sendMessage(Long platformId, String mobilePhone, String message, String supplierId) {
        LOGGER.info("发送邮件开始。。。");
    }
}
